package com.cheers.dao;

import java.util.List;

import com.cheers.model.Product;
import com.cheers.mvo.ProductLog;


public interface ProductDao extends BaseDao {
	
	/**
	 * 获取商品推荐
	 * @return
	 * @throws Exception
	 */
	public List<Product> recd() throws Exception;
	
	/**
	 * 获取商品列表
	 * @param firstIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List<Product> list(int firstIndex, int pageSize) throws Exception;
	
	/**
	 * 获取兑换记录列表
	 * @param userId
	 * @param firstIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List<ProductLog> exchangeList(String userId, int firstIndex, int pageSize) throws Exception;
	
}
